﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ITAP.Core.Modelling
{
    public static class AngleIntervalListExtension
    {
        public static bool IsInIntervals(this List<AngleInterval> intervals, Angle angle)
        {
            foreach (AngleInterval interval in intervals)
                if (interval.IsAngleInInterval(angle))
                    return true;

            return false;
        }
    }
}
